<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header"/>
</head>
<body>
<div class="layui-fluid">
    <form class="layui-form layui-row layui-col-space16">
#for(column : table.columns)
    #set(comment = javadocConfig.formatColumnComment(column.comment))
        <div class="layui-col-sm3">
            <div class="layui-form-item">
                <label class="layui-form-label">#(comment)</label>
                <div class="layui-input-block">
                    <input type="text" name="#(column.property)" class="layui-input" lay-affix="clear">
                </div>
            </div>
        </div>

#end

        <div class="layui-col-sm3">
            <div class="layui-btn-container">
                <button class="layui-btn" lay-submit lay-filter="id_search">搜索</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>

    </form>
    <table class="layui-hide" id="id_table"></table>
</div>
<div id="id_add_dialog" style="display: none;">
    <div class="layui-container">
        <form class="layui-form layui-form-pane" lay-filter="id_from_dialog" action="">
#for(column : table.columns)
    #set(comment = javadocConfig.formatColumnComment(column.comment))
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color:red">*</span>#(comment)</label>
                <div class="layui-input-block">
                    <select name="#(column.property)" lay-filter="#(column.property)" lay-search></select>
                </div>
            </div>
#end
        </form>
    </div>
</div>
<script type="text/html" id="operatorCol">
    <div class="layui-clear-space">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-xs" lay-event="del">删除</a>
    </div>
</script>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/layui.config.js}"></script>
<script>
    layui.use(['#(layuiModuleName)'], function () {
        //请确保在 layui.config.js 中配置了 #(layuiModuleName) 。参考配置：
        //#(layuiModuleName): '#(layuiModulePath)',
    });
</script>
</body>
</html>
